package com.keensense.vcm.model;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * @author lanjian
 * @date 2020/5/22 10:28 上午
 */
@XmlRootElement(name = "response")
public class SpatiotemporalResponse extends BaseResponse{

    private String taskId;

    @XmlElementWrapper(name = "archivesList")
    @XmlElement(name = "archives")
    private List<AnalyseResult> analyseResults;

    @XmlTransient
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @XmlTransient
    public List<AnalyseResult> getAnalyseResults() {
        return analyseResults;
    }

    public void setAnalyseResults(List<AnalyseResult> analyseResults) {
        this.analyseResults = analyseResults;
    }

    public static class AnalyseResult {
        /**
         * 人员档案的id
         */
        @XmlElement
        private String dId;
        /**
         * 人员档案出现的频次
         */
        @XmlElement
        private int frequence;

        @XmlTransient
        public String getdId() {
            return dId;
        }

        public void setdId(String dId) {
            this.dId = dId;
        }

        @XmlTransient
        public int getFrequence() {
            return frequence;
        }

        public void setFrequence(int frequence) {
            this.frequence = frequence;
        }
    }
}
